package com.suse.constant;

/**
 * <p>
 * RedisKey常量类
 * </p>
 *
 * @author 辜玉彬
 * @since 2022-10-22 19:04
 */
public class RedisConstant {

    // 空值
    public static final String BLANK = "";
    public static final long BLANK_TTL = 5;

    // 登录验证码
    public static final String LOGIN_CODE_PREFIX = "hmdp:login:code:";
    public static final long LOGIN_CODE_TTL = 2;

    // 登录用户信息
    public static final String LOGIN_USER_PREFIX = "hmdp:login:user:";
    public static final long LOGIN_USER_TTL = 1000;

    // 商户
    public static final String SHOP_PREFIX = "hmdp:shop:";
    public static final long SHOP_TTL = 10;

    // 商户类型列表
    public static final String SHOP_TYPE_LIST = "hmdp:shop:type:list";
    public static final long SHOP_TYPE_LIST_TTL = 10;

    // 商户锁
    public static final String LOCK = "1";
    public static final String SHOP_LOCK_PREFIX = "hmdp:shop:lock:";
    public static final long SHOP_LOCK_TTL = 5;

    // 全局唯一ID
    public static final String SHOP_GUID = "hmdp:shop:guid";
    public static final String VOUCHER_ORDER_GUID = "hmdp:vourcher:order:guid";

}
